//
//  YXReachability.m
//  SameWorld(merchant)
//
//  Created by 李小朋 on 2017/4/19.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "YXReachability.h"

@implementation YXReachability
+ (void)LGwithSuccessBlock:(successBlock)success
{
    [[self sharedManager]startMonitoring];
    
    [[self sharedManager]setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
        
        if (status == 0) {
            success(@"网络异常，请检查您的网络！");
        }else if (status == 1){
            success(@"3G/4G网络");
        }else if (status == 2){
            success(@"wifi状态下");
        }
    }];
}

@end
